package com.assessment.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.assessment.service.JieDuanService;

@Controller
@RequestMapping("/jieduan")
public class JieDuanController {
	
	@Resource
	private JieDuanService jieDuanService;

	@RequestMapping("/findJieDuan.do")
	public String finfindJieDuan(Model model){
		model.addAttribute("jieduanList",jieDuanService.findJieDuan());
		return "/JieDuan/JieDuanList";
	}
	
	@RequestMapping("/findsanhouwu.do")
	public String findsanhouwu(Model model){
		model.addAttribute("jieduanList",jieDuanService.findsanhouwu());
		return "/JieDuan/JieDuanList";
	}
	
	@RequestMapping("/finderhouwu.do")
	public String finderhouwu(Model model){
		model.addAttribute("jieduanList",jieDuanService.finderhouwu());
		return "/JieDuan/JieDuanList";
	}
	
	
}
